{include file="header.html"}
<script type="text/javascript">
    $(function(){
        $('#article_form').validate({
            errorPlacement: function(error, element){
                $(element).next('.field_notice').hide();
                $(element).after(error);
            },
            success       : function(label){
                label.addClass('right').text('OK!');
            },
            rules : {
                title : {
                    required : true
                },
                cate_id :{
                    required : true
                },
                link    :{
                    url     : true
                },
                sort_order:{
                    number   : true
                }
            },
            messages : {
                title : {
                    required : '{$lang.title_empty}'
                },
                cate_id : {
                    required : '{$lang.cate_empty}'
                },
                link    : {
                    url     : '{$lang.link_limit}'
                },
                sort_order  : {
                    number   : '{$lang.number_only}'
                }
            }
        });
    });
</script>

<div id="rightTop">
    <p>{$lang.wish_list}</p>
    <ul class="subnav">
        <li><a class="btn1" href="index.php?app=wish">{$lang.manage}</a></li>
        {if $article.article_id}
        <li><a class="btn1" href="index.php?app=wish&amp;act=amount">{$lang.help_paragraph}</a></li>
        {else}
        <li><span>{$lang.help_paragraph}</span></li>
        {/if}
    </ul>
</div>

<div class="info">
    <form method="post" enctype="multipart/form-data" id="wish_form">
        <table class="infoTable">
            <tr>
                <th class="paddingT15">
                    {$lang.help_paragraph}:</th>
                <td class="paddingT15 wordSpacing5">
                    <input class="infoTableInput" id="title" type="number" name="money" value="" placeholder="帮砍金额不得超过{$total}"/>
                    <span style="color: red">最高可帮砍{$total}</span>
                    <input type="hidden" name="total" value="{$total}">
                    <input type="hidden" name="wish_id" value="{$id}">
                </td>
            </tr>
            <tr>
                <th></th>
                <td class="ptb20">
                    {if $total eq 0}
                        心愿单已成功,不可再进行帮砍
                    {else}
                        <input class="formbtn" type="submit" name="Submit" value="{$lang.submit}" />
                    {/if}
                    <input class="formbtn" type="reset" name="Submit2" value="{$lang.reset}" />
                </td>
            </tr>
        </table>
    </form>
</div>
{include file="footer.html"}
